import { createModel } from "../utils/create-model";

export const Role = createModel("role", {
  name: {
    type: String,
    required: true,
    unique: true,
  },
  auth: Array,
});

export const AuthItem = createModel("auth-item", {
  name: {
    type: String,
    required: true,
    unique: true,
  },
  value: {
    type: String,
    required: true,
    unique: true,
  },
  type: String,
});
